<?php
session_start();
include 'dbconnection.php';
include 'config.php';
	if($_SESSION['PCUN'] != "") {
			$adminQry = "SELECT *
					 FROM `admin`
					 WHERE `adminUsername` = '".$_SESSION['PCUN']."'";
			$adminExe = mysql_query($adminQry);
			if(mysql_num_rows($adminExe) == 0) {
				header('Location:index.php?msg=3');
			}
		
		} else {
			header('Location:index.php?msg=3');
		}
?>